package com.ny.controller;

import com.ny.entity.Result;
import com.ny.entity.User;
import com.ny.service.impl.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Autowired
    private UserService userService;
    @RequestMapping("/selectUser")
    public Result selectUser(){
        return Result.success(userService.findAll());
    }
}